package net.hualisheng.netty.service;

import net.hualisheng.netty.entity.UserRedpack;
import net.hualisheng.netty.mapper.UserRedpackMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserRedEnvelopeServiceImpl implements UserRedEnvelopeService {

    @Autowired
    private UserRedpackMapper userRedpackMapper;
    /**
     * 新增用户抢红包的记录
     *
     * @param redpack
     */
    @Override
    public int insertGradReadPack(UserRedpack redpack) {
        int i = userRedpackMapper.insertSelective(redpack);
        return i;
    }
}
